import request from '@/utils/request'

const role_link = "/admin/system/menu";

export function getMenuList() {
    return request({
        url: `${role_link}/getMenuList`,
        method: 'post',
    })
}

export function insertMenu(data) {
    return request({
        url: `${role_link}/insertMenu`,
        method: 'post',
        data: data
    })
}

export function deleteMenu(data) {
    return request({
        url: `${role_link}/deleteMenu`,
        method: 'post',
        data: data
    })
}

export function updateMenu(data) {
    return request({
        url: `${role_link}/updateMenu`,
        method: 'post',
        data: data
    })
}